package anim;

import vis.Drawable;

public class SetVisibility extends Frame {

	private Drawable obj = null;
	private boolean vis = true;
	private boolean ovis = false;
	
	public SetVisibility(Drawable obj, boolean vis)
	{
		this.obj = obj;
		this.vis = vis;
	}
	
	@Override
	public void doFrame() {
		ovis = obj.isVisible();
		obj.setVisible(vis);
	}

	@Override
	public void undoFrame() {
		obj.setVisible(ovis);
	}

}
